﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 期末作业
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "舒礼佩" && textBox2.Text == "2018131550")
            {
                this.Hide();
                Form2 a = new Form2();
                a.ShowDialog();
                this.Close();
            }
            else if (textBox1.Text == "" && textBox2.Text == "")
            {
                MessageBox.Show("请输入用户名和密码");
            }
            else
            {
                MessageBox.Show("姓名或密码错误");
            }
        }
    }
}
